package edu.paper.job.service;

import java.io.Serializable;
import java.util.List;

import edu.paper.job.domain.Company;

/**
 * 企业业务逻辑
 * @author bowen
 *
 */
public interface CompanyService {
	public List<Company> find(Company company);		//带条件查询，可以为空，为空时查询所有
	public Company get(Serializable id);		//查询一个
	public void insert(Company company);		//保存
	public void update(Company company);		//更新数据
	public void deleteById(Serializable id);		//删除一个
	public void delete(Serializable ids[]);		//删除一批
	
	/**
	 * 企业注册
	 * @param company
	 * @return	true:注册成功	false:注册失败
	 */
	public boolean register(Company company);
	
	/**
	 * 企业登录
	 * @param company
	 * @return company:登陆成功之后数据填充了的对象，登录失败为null
	 */
	public Company login(Company company);
}
